﻿using Autofac;
using System;
using System.Windows.Forms;

namespace MyFrame
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            #region 依赖注入
            ContainerBuilder builder = new ContainerBuilder();
            builder.RegisterType<LogHelper>().As<ILog>();
            ContainerHelper.container = builder.Build();            
            #endregion
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
